#import "HorizonWondermentView.h"


@implementation HorizonWondermentView



- (void)setQuicksilverDuskBalance:(HorizonWondermentModel *)quicksilverDuskBalance {
	_quicksilverDuskBalance = quicksilverDuskBalance;

	//: 配置cell的UI

	self.lanternLabel.text = quicksilverDuskBalance.blossomSereneIlluminate ? @"YES" : @"NO";

	[self.melancholyRadiateImageView sd_setImageWithURL:[NSURL URLWithString:quicksilverDuskBalance.eclipseJoyousDelight] placeholderImage:nil];

}
//: xenophileKaleidoscopeUnwind 的点击事件
- (void)action_0 {}

//: 设置_melancholyRadiateImageView的圆角
+ (void)wanderOasis:(UIImageView *)arcane virtuousWisp:(CGFloat)yonder {
	arcane.layer.cornerRadius = yonder;
	arcane.layer.masksToBounds = YES;
}

- (UIImageView *)melancholyRadiateImageView {
	if (!_melancholyRadiateImageView) {
	
        _melancholyRadiateImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _melancholyRadiateImageView.contentMode = UIViewContentModeScaleAspectFill;
        _melancholyRadiateImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [HorizonWondermentView wanderOasis:_melancholyRadiateImageView virtuousWisp:9];
        UIImage *volatileVelvet = [UIImage imageNamed:@"images/image_4.png"];
        if (volatileVelvet) {
	        _melancholyRadiateImageView.image = volatileVelvet;
        }
	}
	return _melancholyRadiateImageView;
}

- (UITextField *)glimpseTextField {
	if (!_glimpseTextField) {
	
        _glimpseTextField = [UITextField new];
	}
	return _glimpseTextField;
}

- (void)opusInitUIKitView {

    //: 描述_0
    UIButton *xenophileKaleidoscopeUnwind = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *xenon = [UIImage imageNamed:@"images/icon_0.png"];
    if (xenon) {
	    [xenophileKaleidoscopeUnwind setImage:xenon forState:UIControlStateNormal];
    }
    [xenophileKaleidoscopeUnwind setTitle:@"button_0" forState:UIControlStateNormal];
    [xenophileKaleidoscopeUnwind setTitle:@"button_selected_0" forState:UIControlStateSelected];
    [xenophileKaleidoscopeUnwind setTitleColor:[UIColor colorWithRed:20/255.0 green:46/255.0 blue:173/255.0 alpha:0.8] forState:UIControlStateNormal];
    [xenophileKaleidoscopeUnwind setTitleColor:[UIColor colorWithRed:108/255.0 green:139/255.0 blue:252/255.0 alpha:0.9] forState:UIControlStateSelected];
    [xenophileKaleidoscopeUnwind addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
    self.wonderBtn = xenophileKaleidoscopeUnwind;
    [self addSubview:xenophileKaleidoscopeUnwind];
	[self.wonderBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(144);
		make.height.mas_equalTo(42);
		make.bottom.equalTo(@(11));
	}];


    //: 描述_1
    self.lanternLabel = [UILabel new];
    self.lanternLabel.text = @"label_1";
    self.lanternLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
    self.lanternLabel.textColor = [UIColor colorWithRed:26/255.0 green:103/255.0 blue:168/255.0 alpha:0.6];
    self.lanternLabel.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = self.lanternLabel.numberOfLines = 1;
    NSInteger elevateJeopardyYearning = 1;
    if (elevateJeopardyYearning>16 && elevateJeopardyYearning < 1782) {
	    elevateJeopardyYearning = 55;
    }
    self.lanternLabel.numberOfLines = elevateJeopardyYearning;
    [self addSubview:self.lanternLabel];
	[self.lanternLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(170);
		make.height.mas_equalTo(35);
		make.bottom.equalTo(@(15));
	}];


    //: 描述_2
    self.motionTextView = [[UITextView alloc] init];
    [self addSubview:self.motionTextView];
	[self.motionTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(131);
		make.height.mas_equalTo(34);
		make.bottom.equalTo(@(10));
	}];


    //: 描述_3
    self.infiniteTransformYearlingView = [[UIView alloc] initWithFrame:CGRectZero];
    [self addSubview:self.infiniteTransformYearlingView];
	[self.infiniteTransformYearlingView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(116);
		make.height.mas_equalTo(62);
	}];

	//: 描述_4
	[self addSubview:self.melancholyRadiateImageView];
	[self.melancholyRadiateImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(70);
		make.height.mas_equalTo(48);
		make.top.equalTo(@(27));
		make.bottom.equalTo(@(25));
	}];


    //: 描述_5
    UITextField *gracious = [[UITextField alloc] initWithFrame:CGRectZero];
    gracious.frame = CGRectMake(36, 44, 44, 152);
    self.whimsyTextField = gracious;
    [self addSubview:gracious];

	//: 描述_6
	[self addSubview:self.glimpseTextField];
	[self.glimpseTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(160);
		make.height.mas_equalTo(189);
		make.top.equalTo(@(17));
		make.bottom.equalTo(@(10));
	}];
}


@end